package com.woniuxy.feign;

import com.woniuxy.entity.AllArticle;
import com.woniuxy.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 饶志
 * @version 1.0
 * @since 2025-07-16  01:12
 */
@FeignClient(name = "campus-content", contextId = "articleFeign")
public interface ContentFeignClient {


    /**
     * 根据ID查询帖子的发布者ID
     *
     * @param articleId 帖子ID
     * @return 发布者ID
     */
    @GetMapping("/articles/getAuthorId/{articleId}")
    Long getAuthorIdByArticleId(@PathVariable("articleId") Long articleId);
}
